package com.wechat.back.pojo.inform;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.groups.Default;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Message {

    private int msgId; //消息id
    private int senderId;
    private String sender; //发送者
    private int receiverId;
    private String receiver;//接收者
    @NotEmpty
    private String content;//消息内容
    private LocalDateTime msgTime; //消息时间
    private String knownState; //是否已读
    private String msgSign;//消息标识

    public interface Add extends Default {
    }

    public interface Update extends Default{
    }
}
